package com.woniuxy.rabbitmqspringboot.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author zhangyong
 * @Date 2021/8/12 0012下午 12:03
 */
@Component
public class DirectConsumerB {
    @RabbitListener(queues = "direct_B")
    public void consumer(String data){
        System.out.println("B:"+data);
    }
}
